﻿<Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Xyzzer.AsyncUI.App">
    <Application.Resources>
        <!-- HighlightBrush -->
        <SolidColorBrush
            x:Key="HighlightBrush"
            Color="#FF26A0DA" />

        <!-- DefaultFontStyle -->
        <Style
            x:Key="DefaultFontStyle"
            TargetType="TextBlock">
            <Setter
                Property="Foreground"
                Value="White" />
            <Setter
                Property="FontSize"
                Value="26.667" />
            <Setter
                Property="FontFamily"
                Value="Segoe UI" />
            <Setter
                Property="FontWeight"
                Value="Light" />
            <Setter
                Property="Margin"
                Value="0,0,0,0" />
            <Setter
                Property="TextTrimming"
                Value="WordEllipsis" />
            <Setter
                Property="TextWrapping"
                Value="Wrap" />
        </Style>
        <!-- PageTitleStyle -->
        <Style
            x:Key="PageTitleStyle"
            TargetType="TextBlock"
            BasedOn="{StaticResource DefaultFontStyle}">
            <Setter
                Property="Margin"
                Value="0,0,40,28" />
            <Setter
                Property="VerticalAlignment"
                Value="Bottom" />
            <Setter
                Property="TextWrapping"
                Value="NoWrap" />
            <Setter
                Property="FontSize"
                Value="53.333" />
        </Style>
        <!-- BackButtonStyle -->
        <Style
            x:Key="BackButtonStyle"
            TargetType="Button">
            <Setter
                Property="MinWidth"
                Value="40" />
            <Setter
                Property="Width"
                Value="40" />
            <Setter
                Property="Height"
                Value="40" />
            <Setter
                Property="Margin"
                Value="40,0,40,40" />
            <Setter
                Property="VerticalAlignment"
                Value="Bottom" />
            <Setter
                Property="Template">
                <Setter.Value>
                    <ControlTemplate
                        TargetType="Button">
                        <Canvas
                            x:Name="BackButton">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup
                                    x:Name="CommonStates">
                                    <VisualState
                                        x:Name="Normal" />
                                    <VisualState
                                        x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimation
                                                Duration="0"
                                                To="1"
                                                Storyboard.TargetProperty="(UIElement.Opacity)"
                                                Storyboard.TargetName="MouseOverEllipse" />
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState
                                        x:Name="Pressed">
                                        <Storyboard>
                                            <DoubleAnimation
                                                Duration="0"
                                                To="1"
                                                Storyboard.TargetProperty="(UIElement.Opacity)"
                                                Storyboard.TargetName="PressedEllipse" />
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState
                                        x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimation
                                                Duration="0"
                                                To="0.35"
                                                Storyboard.TargetProperty="(UIElement.Opacity)"
                                                Storyboard.TargetName="BackButton" />
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Ellipse
                                x:Name="PressedEllipse"
                                Fill="{StaticResource HighlightBrush}"
                                Opacity="0"
                                Width="40"
                                Height="40" />
                            <Ellipse
                                x:Name="MouseOverEllipse"
                                Fill="#7F8D8D8D"
                                Opacity="0"
                                Width="40"
                                Height="40" />
                            <Path
                                Fill="White"
                                Data="F1M20.2168,40C31.2608,40,40.2168,31.045,40.2168,20C40.2168,8.958,31.2608,0,20.2168,0C9.1708,0,0.216799999999999,8.958,0.216799999999999,20C0.216799999999999,31.045,9.1708,40,20.2168,40 M20.2168,37.161C10.7548,37.161,3.0578,29.462,3.0578,20C3.0578,10.538,10.7548,2.839,20.2168,2.839C29.6788,2.839,37.3758,10.538,37.3758,20C37.3758,29.462,29.6788,37.161,20.2168,37.161" />
                            <Path
                                Fill="White"
                                Canvas.Left="9.269"
                                Canvas.Top="12.263"
                                Height="15.477"
                                Width="20.928"
                                Stretch="UniformToFill"
                                Data="F1M16.5576,18.0596L22.7016,12.2626L17.7046,12.2626L9.4856,20.0176L17.6686,27.7396L22.6646,27.7396L16.5576,21.9766L30.4136,21.9766L30.4136,18.0596z" />
                        </Canvas>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Application.Resources>
</Application>